import request from '@/utils/request'

// 查询阶段问卷列表
export function listInvestigate(query) {
  return request({
    url: '/teaching/investigate/list',
    method: 'get',
    params: query
  })
}

// 查询阶段问卷详细
export function getInvestigate(id) {
  return request({
    url: '/teaching/investigate/' + id,
    method: 'get'
  })
}

// 新增阶段问卷
export function addInvestigate(data) {
  return request({
    url: '/teaching/investigate',
    method: 'post',
    data: data
  })
}

// 修改阶段问卷
export function updateInvestigate(data) {
  return request({
    url: '/teaching/investigate',
    method: 'put',
    data: data
  })
}

// 删除阶段问卷
export function delInvestigate(id) {
  return request({
    url: '/teaching/investigate/' + id,
    method: 'delete'
  })
}
